<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        yle>* {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .box li {
            /* felx布局
            1.选确定弹性容器
            2.确定主轴方向

            本身我们标准流的块级盒子是垂直的
            改变主轴方向为cloum 改为垂直方向
             */
            display: flex;
            flex-direction: column;
            /* 调整主轴对齐方式 */
            justify-content: space-around;
            align-items: center;
            width: 80px;
            height: 80px;

        }

        img {
            width: 32px;
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li>
                <img src="./images/media.png" alt="">
                <span>媒体</span>
            </li>
        </ul>
    </div>
</body>

</html>